objects = main.o gs-theme-window.o
gtk+cflags = `pkg-config --cflags gtk+-2.0 webkit-1.0`
gtk+libs = `pkg-config --libs gtk+-2.0`

screensaver : $(objects)
	gcc $(gtk+cflags) -o screensaver $(objects) $(gtk+libs)

main.o : main.c
	gcc -c $(gtk+cflags) main.c 

gs-theme-window.o : gs-theme-window.c gs-theme-window.h config.h
	gcc -c $(gtk+cflags) gs-theme-window.c

clean :
	rm $(objects) screensaver

